package com.yanqu.road.server.cmd.activity.busyfarming;


import com.yanqu.road.pb.activity.BusyFarmingProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.utils.YanQuMessageUtils;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_BUSY_FARMING_ACTIVITY_STEAL_NOTIFY, desc = "跨服通知被偷")
public class CrossBusyFarmingStealNotifyCmd extends CrossCommand {


    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        BusyFarmingProto.CrossBusyFarmingStealNotifyMsg notifyMsg = BusyFarmingProto.CrossBusyFarmingStealNotifyMsg.parseFrom(packet.getBytes());
        MessageHelper.sendPacket(notifyMsg.getServerId(), notifyMsg.getUserId(), YanQuMessageUtils.buildMessage(Protocol.S_BUSY_FARMING_STEAL_NOTIFY_FROM_CROSS, notifyMsg));
    }

    @Override
    public void sendData() {

    }
}
